package com.sx.gongzhong.model;

/**
 * Created by XZY on 2017/12/1.
 * 传递字符串
 */
public class MsgEvent<T> {
    private T data;
    private String request;
    private int type;

    public MsgEvent(T data) {
        this.data = data;
    }

    public MsgEvent(String request, int type, T msg) {
        this.data = msg;
        this.request = request;
        this.type=type;
    }
    public String getRequest(){ return request; }

    public int getType() {
        return type;
    }


    public T getData(){return data;}
}
